


// ocrService.js 中必须有正确的实现
import axios from 'axios';

export const uploadAndRecognize = async (formData) => {
  const response = await axios.post(
    '/api/ocr/invoice', // 确保后端接口地址正确
    formData,
    {
      // headers: {
      //   'Content-Type': 'multipart/form-data'
      // }
    }
  );
  return response;
};